package cn.haohaowo.spring.chapter6;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AopTest {

	@Test
	public void testHelloWorld() {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("chapter6-app.xml");
		HelloWorldService helloWorldService = (HelloWorldService) ctx.getBean("helloWorldService", HelloWorldServiceImpl.class);
		helloWorldService.sayHello();
	}
}
